//
//  XRCommonLeftLableWithRImageTableCell.m
//  XClassRoom
//
//  Created by NeiQuan on 16/11/8.
//  Copyright © 2016年 Mr-yuwei. All rights reserved.
//

#import "XRCommonLeftLableWithRImageTableCell.h"

@implementation XRCommonLeftLableWithRImageTableCell

-(void)addOwnView
{
    _rightImageView=[[UIImageView alloc] init];
    _rightImageView .contentMode=UIViewContentModeScaleAspectFill;
    _rightImageView.clipsToBounds=YES;
    [self.contentView addSubview:_rightImageView];
    [_rightImageView setImage:[UIImage imageNamed:@"tab_room"]];
    
    [_rightImageView mas_makeConstraints:^(MASConstraintMaker *make)
    {
        make.bottom.top.right.equalTo(self.contentView);
        make.width.equalTo(_rightImageView.mas_height);
        
    }];
    _rightImageView.layer.masksToBounds=YES;
    _rightImageView.layer.cornerRadius=self.bounds.size.height*0.5;
    _leftLable=[[UILabel alloc] init];
    [self.contentView addSubview:_leftLable];
    //[_leftLable autoAlignAxisToSuperviewAxis:ALAxisHorizontal];
   // [_leftLable autoPinEdgeToSuperviewEdge:ALEdgeLeft withInset:15];
}


@end
